Component({
    properties: {
        list: Array,
        show: Boolean
	},
    data: {
        usePageContainer: false,
    },
    ready(){
        if (wx.canIUse('page-container')) {
            this.setData({
                usePageContainer: true
            })
        }
    },
    methods: {
        onCancel(){
            this.triggerEvent('cancel')
        },
        onTap(event){
            console.log(event.currentTarget.dataset.on)
            this.triggerEvent(event.currentTarget.dataset.on)
        }
    }
});
